|
Foxit PDF SDK
|
Public Member Functions | |
| def | AccessibilityFixer (pdf_doc) |
| Constructor. More... | |
| def | CanFixPermissionRules (check_rule, is_ocr_enabled) |
| Check whether permission rules can be fixed. More... | |
| def | CanFixRules (check_rule, check_state) |
| Check whether specified rules can be fixed. More... | |
| def | FixDocumentBookmark (roles_array) |
| Fix document bookmark. More... | |
| def | FixDocumentLanguage (lang) |
| Fix document language. More... | |
| def | FixDocumentPermission () |
| Fix document permission. More... | |
| def | FixDocumentTag () |
| Fix document tag. More... | |
| def | FixDocumentTitle (title, subject, author, keywords) |
| Fix document title. More... | |
| def | FixDocumentTitleWithExistingTitle () |
| Fix document title with existing title. More... | |
| def | FixFigureAltText (detail_data_array) |
| Fix figure alternate text. More... | |
| def | FixFormFieldDescriptions () |
| Fix form field descriptions. More... | |
| def | FixFormFieldTagged () |
| Fix form field tagged. More... | |
| def | FixPageTabOrder () |
| Fix page tab order. More... | |
| def | IsEmpty () |
| Check whether current object is empty or not. More... | |
This class represents an accessibility fixer for a PDF document: query whether rules are fixable and apply automatic fixes (document language / title / bookmark / permission / tag, page tab order, figure alternate text, form field tagging and descriptions). Before using any class or methods in this module, please ensure Foxit PDF SDK has been initialized successfully by function FoxitPDFSDKPython2.Library.Initialize with a key including "Accessibility" module.
| def FoxitPDFSDKPython2.AccessibilityFixer.AccessibilityFixer | ( | pdf_doc | ) |
Constructor.
Constructor, with another fixer object.
| [in] | pdf_doc | A valid PDF document object. |
| [in] | other | Another fixer object. |
| def FoxitPDFSDKPython2.AccessibilityFixer.CanFixPermissionRules | ( | check_rule, | |
| is_ocr_enabled | |||
| ) |
Check whether permission rules can be fixed.
| [in] | check_rule | The check rule type. |
| [in] | is_ocr_enabled | Whether OCR is enabled. |
| def FoxitPDFSDKPython2.AccessibilityFixer.CanFixRules | ( | check_rule, | |
| check_state | |||
| ) |
Check whether specified rules can be fixed.
| [in] | check_rule | The check rule type. |
| [in] | check_state | The check state. |
| def FoxitPDFSDKPython2.AccessibilityFixer.FixDocumentBookmark | ( | roles_array | ) |
Fix document bookmark.
| [in] | roles_array | The roles array. |
| def FoxitPDFSDKPython2.AccessibilityFixer.FixDocumentLanguage | ( | lang | ) |
Fix document language.
| [in] | lang | The language to set. |
| def FoxitPDFSDKPython2.AccessibilityFixer.FixDocumentPermission | ( | ) |
Fix document permission.
| def FoxitPDFSDKPython2.AccessibilityFixer.FixDocumentTag | ( | ) |
Fix document tag.
| def FoxitPDFSDKPython2.AccessibilityFixer.FixDocumentTitle | ( | title, | |
| subject, | |||
| author, | |||
| keywords | |||
| ) |
Fix document title.
| [in] | title | The title to set. |
| [in] | subject | The subject to set. |
| [in] | author | The author to set. |
| [in] | keywords | The keywords to set. |
| def FoxitPDFSDKPython2.AccessibilityFixer.FixDocumentTitleWithExistingTitle | ( | ) |
Fix document title with existing title.
| def FoxitPDFSDKPython2.AccessibilityFixer.FixFigureAltText | ( | detail_data_array | ) |
Fix figure alternate text.
| [in] | detail_data_array | The check result detail data array. |
| def FoxitPDFSDKPython2.AccessibilityFixer.FixFormFieldDescriptions | ( | ) |
Fix form field descriptions.
| def FoxitPDFSDKPython2.AccessibilityFixer.FixFormFieldTagged | ( | ) |
Fix form field tagged.
| def FoxitPDFSDKPython2.AccessibilityFixer.FixPageTabOrder | ( | ) |
Fix page tab order.
| def FoxitPDFSDKPython2.AccessibilityFixer.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.